package com.shiku.staticstic.service;

public class Response {
	
	public static final String SUC = "1";
	public static final String FAIL = "0";

	private String suc = SUC;
	private String errmsg = "";
	private Object data;
	
	public Response() {
		super();
	}

	public Response(String errmsg) {
		super();
		this.suc = FAIL;
		this.errmsg = errmsg;
	}
	
	public Response(Object data) {
		super();
		this.data = data;
	}
	
	public Response(String suc, String errmsg, Object data) {
		super();
		this.suc = suc;
		this.errmsg = errmsg;
		this.data = data;
	}
	
	public String getSuc() {
		return suc;
	}
	public void setSuc(String suc) {
		this.suc = suc;
	}
	public String getErrmsg() {
		return errmsg;
	}
	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		return suc+" "+errmsg+" "+data;
	}
	
}
